// pages/info/logs/logs.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
  },
  onShow: function (e) {
    var order = wx.getStorageSync('order');
    if(order){
      var orderInfo = order.reverse();
      this.setData({
        orderInfo: orderInfo
      })
    }
  },
  copyTBL: function (e) {
    var order = e.currentTarget.dataset.order;
    wx.setClipboardData({
      data: order,
      success: function(res){
        wx.showToast({
          title: '复制成功',
          icon: 'success',
          duration: 1000
        })
      }
    });
  }  
})